Repository navigation
What a tab shows, through the link (features) and ⋮ «Optionen» - #41
Merged
Merged
Conversation
A share link can set which parts the IDE shows, in the embed's features= vocabulary (run, tests, visualize, repl, export, coverage, listtree, tree; others ignored): "features" in the payload (both encodings), or ?features= without a project. It is the tab's starting state: ⋮ «Optionen» switches each part, the tab keeps them across a reload, «Teilen» writes the current settings (none for a tab that never had any). Without settings, as before: everything but listtree and tree. Needs glpython-editor's run switch (#56). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
P34 C: what an IDE tab shows, set by the link and switchable in ⋮ «Optionen».
Installs glpython-editor v0.1.30 (#56: a switch of its own for ▶).
What it does
run(▶),tests,visualize,repl(the console's>>>line),export(«→-Kette kopieren» in the visualizer),coverage,listtreeandtree(the visualizer's mode «Baum»). Other names (ide,reset, unknown ones) are ignored."features": [...]in the payload, next toopenFileandfiles. It works in?p=and in the old?project=.?features=run,repl(or#features=) on the address sets the tab too. A link's ownfeatureswin.input()still asks in its line when a program runs.The defaults (no settings)
features=)run,tests,visualize,replexportcoveragecoverage: true)listtree,treeSo the IDE differs from the embed only in
coverage. To hide the export from learners, a link leaves outexport.The field
{ "v": 2, "name": "…", "mainFile": "auswerter.py", "openFile": "aufgabe.md", "features": ["run", "repl", "visualize", "tests", "coverage", "listtree", "tree"], "files": { … } }Checks (
test:browser, all 26 pass)New cases:
repl(run, tests, visualize, ide):input()asks in the console, and the answer runs through;idedropped); switching «Eingabezeile» on brings the REPL line back;["run", "tests", "visualize", "repl"].listtreeandtree: a list value in the REPL gets «Baum», the visualizer offers «Kasten / Ersetzung / Baum», and the variables panel draws the tree.features: old?project=and new?p=both show the three buttons and the REPL line. Optionen shows the defaults, and «Teilen» writes nofeatures.?features=run,visualizewithout a project: those two buttons, no REPL line.The embed side (the block's
features=into the link) is glpython-liascript#35, checked there.Screenshots
input()prompt as the console's only input line;Going live
features(unknown fields don't break a link), so the order is only about when the parts show up.Manual tests
Desktop (Chrome, Safari, Firefox):
featureswithoutrepl: no>>>line.input(): it asks in the console.listtree,tree: «Baum» in the visualizer, and «Baum» on a list value in the REPL.iPad (Safari, external keyboard):
Follow-ups (not done)
resetOutput(the workspace's own Reset) stays off in the IDE: ⋮ «Python neu starten» does that job. It isn't in the vocabulary.🤖 Generated with Claude Code